﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.popups.alerts {
    import flash.events.*;
    import flash.display.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.views.popups.*;
    import net.wooga.pets.constants.*;
    import net.wooga.pets.utils.*;

    public class EnforceReloadPopupMediator extends AbstractPopupMediator {

        override public function onRegister():void{
            super.onRegister();
            var _local1:String = ((this.view.data.button) || ("global_errormessage_newversion_button"));
            addOkButton(_local1);
            addLabel("title showcardGothicFont", this.view.data.header);
            addLabel("text myriadProFont", this.view.data.body);
            var _local2:MovieClip = AssetsLibrary.getMovieClip(this.view.data.clip);
            RepriseUtils.addClipComponent(this.view, "contentDisplay", _local2);
        }
        private function get view():EnforceReloadPopupView{
            return ((viewComponent as EnforceReloadPopupView));
        }
        override protected function onOk(_arg1:MouseEvent):void{
            var _local2:InfoEvent = new InfoEvent(EventConstants.CALL_EXTERNAL, ProtocolConstants.RELOAD_GAME);
            dispatch(_local2);
            super.onOk(_arg1);
        }

    }
}//package net.wooga.pets.views.popups.alerts 
